package cn.kgc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/6/27
 * @Description:
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("m1")
    public String method(String color){

        return " m1  orderService ok  port = "+port +" color = "+color;
    }

    @RequestMapping("m2")
    public String method2(){

        return "  m2  orderService ok  port = "+port;
    }
}
